package com.bidevalution.business.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bidevalution.business.service.BeSectionProgressService;


import com.bidevalution.dao.entity.BeSectionProgress;
import com.bidevalution.dao.entity.BeSectionProgressKey;
import com.bidevalution.dao.mapper.BeSectionProgressMapper;
@Service
public class BeSectionProgressServiceImpl implements BeSectionProgressService{
	@Autowired
	private BeSectionProgressMapper beSectionProgressMapper;
	@Override
	public void insert(BeSectionProgress beSectionProgress) {
		
		beSectionProgressMapper.insert(beSectionProgress);
	}
	@Override
	public BeSectionProgress selectByKey(String sectionId,String state) {
		
		BeSectionProgressKey beSectionProgressKey = new BeSectionProgressKey();
		beSectionProgressKey.setSectionId(sectionId);
		beSectionProgressKey.setState(state);
		return beSectionProgressMapper.selectByPrimaryKey(beSectionProgressKey);
	}
	@Override
	public List<BeSectionProgress> selectLiveList(Integer closetime) {
		return beSectionProgressMapper.selectLiveList(closetime);
	}

}
